<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!-- public quote -->
<%@include file="/jsp/comm_css_include.jsp"%>
<link href="${basePath }/css/timeline.css?v=2342" rel="stylesheet">
<!doctype html>
<html>
<head>
</head>
<body class="gray-bg">

<!--隐藏域 -->
<input type="hidden" value="${busiId}" id="busiId" name="busiId"/>
<input type="hidden" value="${statusTransfer}"id="statusTransfer" name="statusTransfer"/>
<!--隐藏域 -->

<div class="container creditbody">
	<div class="iboxtitle">
	 	<span><i class="glyphicon glyphicon-map-marker"></i>&nbsp;业务受理>二手车过户</span>
        </div>
        <div class="buttonfixed">
        <button type="button" class="btn dpbtn_blue" onclick="saveBaoCun();">保存</button>
		<button type="button" class="btn dpbtn_blue" onclick="save();">提交</button>
	</div>
   <div class="ibox-content ibox-con">
		<%@include file="/jsp/common_yw_with_loan_include.jsp"%>
		<!-- 车辆信息 -->
		<div class="business-manwife">车辆信息</div>
		<form class="form-horizontal m-t" id="commentForm">	
				<div class="padding-nono">
				        <table cellpadding="0" cellspacing="0" border="0" class="buyinfor-table">
						<tr>	
							<td align="right">
								<input id="carId" name="carId" type="hidden" value="${ywBusinessCar.id }">
								<label class="control-label np">车辆类别：</label>
							</td>
							<td>
								<mytag:selectTag id="categoryCar" name="categoryCar" map="${carCategoryType }" selected="${ywBusinessCar.categoryCar }" others="class='select-control' required='required'"/>
							</td>
							
							<td align="right">
								<label class="control-label np">车辆颜色：</label>
							</td>
							<td>
								<mytag:selectTag id="colorCar" name="colorCar" map="${carColorType }" selected="${ywBusinessCar.colorCar }" others="class='select-control' required='required'"/>
							</td>
						</tr>
						<tr>
							<td align="right"><label class="control-label np">车辆车型：</label>
							</td>
							<td colspan="3">
								<input type="text" placeholder="请输入汽车品牌(必填)" required="required" id="carName" class="form-control smalliconcur smallicon" name="carName" value="${ywBusinessCar.nameCarModel }" onclick="carcho(false,this.value);" /> 
								<input type="hidden" id="carModel" name="carModel" value="${ywBusinessCar.carModel }" /> 
								<input id="carBrand" name="carBrand" type="hidden" value="${ywBusinessCar.carBrand }" /> 
								<input id="carSeries" name="carSeries" type="hidden"  value="${ywBusinessCar.carSeries }"/> 
								<input type="hidden" id="nameCarModel" name="nameCarModel" value="${ywBusinessCar.nameCarModel }" /> 
								<input id="nameCarBrand" name="nameCarBrand" type="hidden"  value="${ywBusinessCar.nameCarBrand }" /> 
								<input id="nameCarSeries" name="nameCarSeries" type="hidden" value="${ywBusinessCar.nameCarSeries }" />
								<input id="carId" name="carId" type="hidden">
								<input id="priceNewcar"  type="hidden" />
							</td>
							<td align="right">
								<label class="control-label np">合格证号：</label>
							</td>
							<td>
								<input id="numQualified" required="required" placeholder="合格证号(必填)" name="numQualified" class="form-control" value="${ywBusinessCar.numQualified }" />
							</td>
						</tr>
						<tr>	
							<td align="right">
								<label class="control-label np">排量(L)：</label>
							</td>
							<td>
								<input id="displacement" name="displacement" required="required" placeholder="排量(必填)" class="form-control" value="${ywBusinessCar.displacement }" />
							</td>
							
							<td align="right">
								<label class="control-label np">功率：</label>
							</td>
							<td>
								<input id="power" name="power"  class="form-control" required="required" placeholder="功率(必填)" value="${ywBusinessCar.power }" />
							</td>
							<td align="right">
								<label class="control-label np">车架号：</label>
							</td>
							<td>
								<input id="vin" name="vin" class="form-control" onblur="changenumEngine();"  required="required" placeholder="车架号(必填)" value="${ywBusinessCar.vin }" />
							</td>
						</tr>
						<tr>	
							<td align="right">
								<label class="control-label np">发动机号：</label>
							</td>
							<td>
								<input id="numEngine" name="numEngine"  required="required" placeholder="发动机号(必填)"  class="form-control"  value="${ywBusinessCar.numEngine }" />
							</td>
							
							<td align="right">
								<label class="control-label np">底盘后6位：</label>
							</td>
							<td>
								<input id="numChassisSix" name="numChassisSix" class="form-control" readonly="readonly" type="text" maxlength="6" minlength="6" required="required" placeholder="底盘后6位(必填)"  value="${ywBusinessCar.numChassisSix }" />
							</td>
							<td align="right">
								<label class="control-label np">开票单位：</label>
							</td>
							<td>
								<input id="companyBill" name="companyBill" class="form-control" required="required" placeholder="开票单位(必填)" value="${ywBusinessCar.companyBill }" />
							</td>
						</tr>
						<tr>	
							<td align="right">
								<label class="control-label np">发票日期：</label>
							</td>
							<td>
								<input id="dateBill" required="required" placeholder="发票日期(必填)" name="dateBill" class="form-control laydate-icon" value="<fmt:formatDate value='${ywBusinessCar.dateBill }' pattern='yyyy-MM-dd'/>" />
							</td>
							
							<td align="right">
								<label class="control-label np">发票号：</label>
							</td>
							<td>
								<input id="numBill" name="numBill" required="required" placeholder="发票号(必填)"  class="form-control" value="${ywBusinessCar.numBill }" />
							</td>
							<td align="right">
								<label class="control-label np">发票地区：</label>
							</td>
							<td>
								<input id="areaBill" name="areaBill" required="required" placeholder="发票地区(必填)" class="form-control" value="${ywBusinessCar.areaBill }" />
							</td>
						</tr>
						<tr>	
							<td align="right">
								<label class="control-label np">厂牌型号：</label>
							</td>
							<td>
								<input id="noticeModel" name="noticeModel" required="required" placeholder="厂牌型号(必填)"  class="form-control" value="${ywBusinessCar.noticeModel }" />
							</td>
							<td align="right">
								<label class="control-label np">开票价格：</label>
							</td>
							<td>
								<input id="price" name="price" readonly="readonly" required="required" placeholder="开票价格(必填)"  class="form-control" value="${ywBusinessCar.price}" />
							</td>
						</tr>
					</table>	
				</div>	 
				<div class="business-manwife">过户信息</div>
				<div class="business-padding">
					<table cellpadding="0" cellspacing="0" border="0" class="buyinfor-table">
						<tr>
		            		<td align="right">
								<label class="control-label np">过户时间：</label>
							</td>
		            	
							<td>
		                        <input id="date_transfer" name="date_transfer"  type="text" class="laydate-icon form-control" aria-required="true" required="required"   placeholder="过户时间(必填)" onclick="laydate()"/>
							</td>
						</tr>
					</table>
					<ul class="zxsearch-ulsd">
		            	<li class="zxsearch-ulli">信息备注：</li>
		            	<li class="zxsearch-ullib">
							<div class="bus-class_table">
		                  		<table cellpadding="0" cellspacing="0" border="0" bordercolor="#3B95C8" width="100%">
		                  			<tr>
		                  				<td width="90%" align="left">
		                  					<textarea id="remark" name="remark" rows="" cols="" class="form-control"></textarea>
		                  				</td>
		                  			</tr>
		                  		</table>
		                 	</div>
						</li>
				    </ul>
				    <ul class="zxsearch-ulsd clear-both" id="beizhu" style="display: none">
		            	<li class="zxsearch-ulli" style="color:#FC1515;">退回信息：</li>
		            	<li class="zxsearch-ullib">
							<div class="bus-class_table">
		                  		<table cellpadding="0" cellspacing="0" border="0" bordercolor="#3B95C8" width="100%">
		                  			<tr>
		                  				<td width="90%" align="left">
		                  					<textarea id="beizhuinput" name="" rows="3" cols="" disabled="disabled" class="form-control"></textarea>
		                  				</td>
		                  			</tr>
		                  		</table>
		                 	</div>
						</li>
				    </ul>
				</div>
			</form>	
				<div class="business-manwife">二手车过户资料</div>
				<div class="padding-nono">
					<div class="zx-addimg">
						<ul id="GUO_HU_QI_CHE_ZI_LIAO">
							<li><img
								filelabel="${attachmentLabelNames.GUO_HU_ER_SHOU_CHE_FA_PIAO }"
								src="${basePath}/img/shangchuanzhaopian.png" width="110px"
								height="110px"
								class="zx-imgPre ${attachmentLabelNames.GUO_HU_ER_SHOU_CHE_FA_PIAO }">
								<span
								filelabelDelSpan="${attachmentLabelNames.GUO_HU_ER_SHOU_CHE_FA_PIAO }"
								class="hidden bt-cancle glyphicon glyphicon-trash"
								onclick="deleleFileRecord(this,'${attachmentLabelNameValues.GUO_HU_ER_SHOU_CHE_FA_PIAO }',false);"></span>
								<div class="img-layer">
									<div></div>
									<span
										filelabelLabelSpan="${attachmentLabelNames.GUO_HU_ER_SHOU_CHE_FA_PIAO }">${attachmentLabelNameValues.GUO_HU_ER_SHOU_CHE_FA_PIAO }</span>
								</div>
								<div filelabelDiv="${attachmentLabelNames.GUO_HU_ER_SHOU_CHE_FA_PIAO }"
									class="hidden button-des">
									<a type="button"
									class="abuttonStylele"  filelabelADown="${attachmentLabelNames.GUO_HU_ER_SHOU_CHE_FA_PIAO }"
										download="shangchuanzhaopian.png"
										href="${basePath}/img/shangchuanzhaopian.png">下载</a> <a
									type="button" class="abuttonStyleri"  onclick="showImg(this);">详情</a>
								</div> <a href="javascript:void(0);" class="file"> <span>上传资料</span>
									<input type="file"
									accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg"
									onchange="uploadFile(this,'${modeIDTypeNames.GUOGUZILIAO }','GUO_HU_QI_CHE_ZI_LIAO', false, false);" />
							</a></li>
							
							<li><img
								filelabel="${attachmentLabelNames.GUO_HU_DENG_JI_ZHENG_SHU1 }"
								src="${basePath}/img/shangchuanzhaopian.png" width="110px"
								height="110px"
								class="zx-imgPre ${attachmentLabelNames.GUO_HU_DENG_JI_ZHENG_SHU1 }">
								<span
								filelabelDelSpan="${attachmentLabelNames.GUO_HU_DENG_JI_ZHENG_SHU1 }"
								class="hidden bt-cancle glyphicon glyphicon-trash"
								onclick="deleleFileRecord(this,'${attachmentLabelNameValues.GUO_HU_DENG_JI_ZHENG_SHU1 }',false);"></span>
								<div class="img-layer">
									<div></div>
									<span
										filelabelLabelSpan="${attachmentLabelNames.GUO_HU_DENG_JI_ZHENG_SHU1 }">${attachmentLabelNameValues.GUO_HU_DENG_JI_ZHENG_SHU1 }</span>
								</div>
								<div filelabelDiv="${attachmentLabelNames.GUO_HU_DENG_JI_ZHENG_SHU1 }"
									class="hidden button-des">
									<a type="button"
									class="abuttonStylele"  filelabelADown="${attachmentLabelNames.GUO_HU_DENG_JI_ZHENG_SHU1 }"
										download="shangchuanzhaopian.png"
										href="${basePath}/img/shangchuanzhaopian.png">下载</a> <a
									type="button" class="abuttonStyleri"  onclick="showImg(this);">详情</a>
								</div> <a href="javascript:void(0);" class="file"> <span>上传资料</span>
									<input type="file"
									accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg"
									onchange="uploadFile(this,'${modeIDTypeNames.GUOGUZILIAO }','GUO_HU_QI_CHE_ZI_LIAO', false, false);" />
							</a></li>
							<li><img
								filelabel="${attachmentLabelNames.GUO_HU_DENG_JI_ZHENG_SHU2 }"
								src="${basePath}/img/shangchuanzhaopian.png" width="110px"
								height="110px"
								class="zx-imgPre ${attachmentLabelNames.GUO_HU_DENG_JI_ZHENG_SHU2 }">
								<span
								filelabelDelSpan="${attachmentLabelNames.GUO_HU_DENG_JI_ZHENG_SHU2 }"
								class="hidden bt-cancle glyphicon glyphicon-trash"
								onclick="deleleFileRecord(this,'${attachmentLabelNameValues.GUO_HU_DENG_JI_ZHENG_SHU2 }',false);"></span>
								<div class="img-layer">
									<div></div>
									<span
										filelabelLabelSpan="${attachmentLabelNames.GUO_HU_DENG_JI_ZHENG_SHU2 }">${attachmentLabelNameValues.GUO_HU_DENG_JI_ZHENG_SHU2 }</span>
								</div>
								<div filelabelDiv="${attachmentLabelNames.GUO_HU_DENG_JI_ZHENG_SHU2 }"
									class="hidden button-des">
									<a type="button"
									class="abuttonStylele"  filelabelADown="${attachmentLabelNames.GUO_HU_DENG_JI_ZHENG_SHU2 }"
										download="shangchuanzhaopian.png"
										href="${basePath}/img/shangchuanzhaopian.png">下载</a> <a
									type="button" class="abuttonStyleri"  onclick="showImg(this);">详情</a>
								</div> <a href="javascript:void(0);" class="file"> <span>上传资料</span>
									<input type="file"
									accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg"
									onchange="uploadFile(this,'${modeIDTypeNames.GUOGUZILIAO }','GUO_HU_QI_CHE_ZI_LIAO', false, false);" />
							</a></li>
							<li><img
								filelabel="${attachmentLabelNames.GUO_HU_BAO_DAN }"
								src="${basePath}/img/shangchuanzhaopian.png" width="110px"
								height="110px"
								class="zx-imgPre ${attachmentLabelNames.GUO_HU_BAO_DAN }">
								<span
								filelabelDelSpan="${attachmentLabelNames.GUO_HU_BAO_DAN }"
								class="hidden bt-cancle glyphicon glyphicon-trash"
								onclick="deleleFileRecord(this,'${attachmentLabelNameValues.GUO_HU_BAO_DAN }',false);"></span>
								<div class="img-layer">
									<div></div>
									<span
										filelabelLabelSpan="${attachmentLabelNames.GUO_HU_BAO_DAN }">${attachmentLabelNameValues.GUO_HU_BAO_DAN }</span>
								</div>
								<div filelabelDiv="${attachmentLabelNames.GUO_HU_BAO_DAN }"
									class="hidden button-des">
									<a type="button"
									class="abuttonStylele"  filelabelADown="${attachmentLabelNames.GUO_HU_BAO_DAN }"
										download="shangchuanzhaopian.png"
										href="${basePath}/img/shangchuanzhaopian.png">下载</a> <a
									type="button" class="abuttonStyleri"  onclick="showImg(this);">详情</a>
								</div> <a href="javascript:void(0);" class="file"> <span>上传资料</span>
									<input type="file"
									accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg"
									onchange="uploadFile(this,'${modeIDTypeNames.GUOGUZILIAO }','GUO_HU_QI_CHE_ZI_LIAO', false, false);" />
							</a></li>
							
							<li><img
								filelabel="${attachmentLabelNames.GUO_HU_HE_GE_ZHENG }"
								src="${basePath}/img/shangchuanzhaopian.png" width="110px"
								height="110px"
								class="zx-imgPre ${attachmentLabelNames.GUO_HU_HE_GE_ZHENG }">
								<span
								filelabelDelSpan="${attachmentLabelNames.GUO_HU_HE_GE_ZHENG }"
								class="hidden bt-cancle glyphicon glyphicon-trash"
								onclick="deleleFileRecord(this,'${attachmentLabelNameValues.GUO_HU_HE_GE_ZHENG }',false);"></span>
								<div class="img-layer">
									<div></div>
									<span
										filelabelLabelSpan="${attachmentLabelNames.GUO_HU_HE_GE_ZHENG }">${attachmentLabelNameValues.GUO_HU_HE_GE_ZHENG }</span>
								</div>
								<div filelabelDiv="${attachmentLabelNames.GUO_HU_HE_GE_ZHENG }"
									class="hidden button-des">
									<a type="button"
									class="abuttonStylele"  filelabelADown="${attachmentLabelNames.GUO_HU_HE_GE_ZHENG }"
										download="shangchuanzhaopian.png"
										href="${basePath}/img/shangchuanzhaopian.png">下载</a> <a
									type="button" class="abuttonStyleri"  onclick="showImg(this);">详情</a>
								</div> <a href="javascript:void(0);" class="file"> <span>上传资料</span>
									<input type="file"
									accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg"
									onchange="uploadFile(this,'${modeIDTypeNames.GUOGUZILIAO }','GUO_HU_QI_CHE_ZI_LIAO', false, false);" />
							</a></li>
							
							<li class="firstMuliUploadButton zx-upimg"><img src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre" style="display: block;" />
								<div class="img-layer">
									<div></div>
									<span filelabelLabelSpan="${attachmentLabelNames.GUO_HU_QI_CHE_ZI_LIAO }">${attachmentLabelNameValues.GUO_HU_QI_CHE_ZI_LIAO }</span>
								</div> 
								<a href="javascript:;" class="file" onclick="uploadFileClicked(this,'img');" modeId="${modeIDTypeNames.GUOGUZILIAO }" ulId="GUO_HU_QI_CHE_ZI_LIAO" customLabel="true" isAdd="true" fileLabelLi="${attachmentLabelNames.GUO_HU_QI_CHE_ZI_LIAO }" defaltLabelNameLi="${attachmentLabelNameValues.GUO_HU_QI_CHE_ZI_LIAO }" subId="" ></a>
							</li>
						</ul>
					</div>
				</div>
				
				
				<div class="business-manwife">现场提车照</div>
				<div class="padding-nono">
					<div class="zx-addimg">
						<ul id="GUO_HU_ZI_LIAO">
							<li class="firstMuliUploadButton zx-upimg"><img src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre" style="display: block;" />
								<div class="img-layer">
									<div></div>
									<span filelabelLabelSpan="${attachmentLabelNames.GUO_HU_ZI_LIAO_ZILIAO1 }">${attachmentLabelNameValues.GUO_HU_ZI_LIAO_ZILIAO1 }</span>
								</div> 
								<a href="javascript:;" class="file" onclick="uploadFileClicked(this,'img');" modeId="${modeIDTypeNames.GUOGUZILIAO }" ulId="GUO_HU_ZI_LIAO" customLabel="true" isAdd="true" fileLabelLi="${attachmentLabelNames.GUO_HU_ZI_LIAO_ZILIAO1 }" defaltLabelNameLi="${attachmentLabelNameValues.GUO_HU_ZI_LIAO_ZILIAO1 }" subId="" ></a>
							</li>
						</ul>
				  </div>
			 </div>
	 	</div>
 	</div>
</div>	
	
	<!-- public quote -->
    <%@include file="/jsp/comm_js_include.jsp"%>
 	<!-- summernote -->
 	<%@include file="/js/common-dpqc/dpqc-summernote/comm_summernote_include.jsp"%>
 	<!-- layerDate plugin javascript -->
    <script type="text/javascript" src="${basePath}/js/plugins/layer/laydate/laydate.js"></script>
     <!-- 文件上传 -->
	<%@include file="/jsp/common_fileupload_multi_include.jsp"%>
    <!-- 车型选择 -->
	<%@include file="/jsp/carchoice_js_include.jsp"%>
    
    <script type="text/javascript">
	    $(function(){	
	    	var dateBill = {
	    			  elem: '#dateBill', 
	  		          event: 'focus' ,
	    			  format: 'YYYY-MM-DD',
	    			  max: '2099-06-16', //最大日期
	    			  istime: false,
	    			  istoday: false
	    			};
	        laydate(dateBill);
	        
	        $("#commentForm").validate({
	            //重写showErrors
	            showErrors: function (errorMap, errorList) {
	                
	                $.each(errorList, function (i, v) {
	                    layer.tips(v.message, v.element, { time: 1500 });
	                    return false;
	                });  
	            },
	            /* 失去焦点时验证 */
	            onfocusout: function(element) { $(element).valid(); },
	            /*  键盘抬起不验证 */
	            onkeyup:false,
	        });
		});
	    
	    function changenumEngine(){
	    	var vin = $("#vin").val();
	    	var len = vin.length;
	    	var numChassisSix = vin.substring(len,len-6);
	    	$("#numChassisSix").val(numChassisSix)
	    }
    
	    jQuery(function($) {  
	    	$('#remark').summernote({
	            lang: 'zh-CN',
	            toolbar:[
					['style', ['bold', 'italic', 'underline', 'clear']],
					['color', ['color']]
	            ]
	        });
	    	showAttentment($('#busiId').val(),null,'${modeIDTypeNames.GUOGUZILIAO }');
	    	initData();
	    });
	    
	    //初始化数据
	    var initData = function()
	    {
	    	var busiId = $('#busiId').val();
	    	var statusTransfer = $('#statusTransfer').val();
	    	$.dpAjax({
		   		url:'${basePath}/YwShouLiController/getYwTransfer',
		   		data:{
		   			"busiId":busiId,
		   			"statusTransfer":statusTransfer
		   		},
				success: function(datas)
				{
			 	  if(datas.flag == "100100")
			 	  {
			 		 
			 		  var ywTransfer = datas.ywTransfer;
			 		  if(ywTransfer)
			 		  {
			 			  $('#date_transfer').val(ywTransfer.dateTransfer ? formateDate(ywTransfer.dateTransfer) : '');
			 			  $('#remark').code(ywTransfer.remarks);
			 		  }
			 		  
			 		  var reMaps  = datas.reMaps;
			 		  if(reMaps)
			 		  {
			 			  for(var i=0;i<reMaps.length;i++)
			 			  {
			 				  var objs = d[i];
			 				  var audit_detail = objs['audit_detail'];
			 				  $('#beizhuinput').val(audit_detail);
			 				  $('#beizhu').show();
			 			  }
			 		  }
					  return;
				  }
			 	  layer.msg(datas.message, {icon: 5});
				}
		   	});
	    }
	    
	    
	    //保存按钮
	    var saveBaoCun = function()
	    {
			//业务信息的主键
    		var date_transfer = $('#date_transfer').val();
	    	var remarks = $('#remark').code();
	    	var busiId = $('#busiId').val();
	    	
	    	//车辆信息
	    	var id = $('#carId').val();
	    	var customerId = $("#customerId").val();
	    	var categoryCar = $("#categoryCar").val();
	    	var nameCarSeries = $("#carSeries option:selected").text();
	    	var colorCar = $('#colorCar').val();
	    	var numQualified = $('#numQualified').val();
	    	
	    	var carName = $("#carName").val() ;
	    	var carBrand = $("#carBrand").val() ;
			var nameCarBrand = $("#nameCarBrand").val();
			var carSeries = $("#carSeries").val();
			var carModel = $("#carModel").val();
			var nameCarSeries = $("#nameCarSeries").val();
			var nameCarModel = $("#nameCarModel").val();
			var carId = $("#carId").val();
	    	
	    	var displacement = $('#displacement').val();
	    	var power = $('#power').val();
	    	var vin = $('#vin').val();
	    	var numEngine = $('#numEngine').val();
	    	var numChassisSix = $('#numChassisSix').val();
	    	var companyBill = $('#companyBill').val();
	    	var dateBill = $('#dateBill').val();
	    	var numBill = $('#numBill').val();
	    	var areaBill = $('#areaBill').val();
	    	var noticeModel = $('#noticeModel').val();
	    	var price = $('#price').val();
	    	var nameCarBrand = $("#carBrand option:selected").text();
	    	$.dpAjax({
		   		url:'${basePath}/YwShouLiController/diepuCarTransfer',
		   		data:{
		   			"busiId":busiId,
		   			"dateTransfer":date_transfer,
		   			"remarks":remarks,
		   			"cusId":customerId,
		   			"categoryCar":categoryCar,
		   			"nameCarModel":nameCarModel,
		   			"colorCar":colorCar,
		   			"nameCarSeries":nameCarSeries,
		   			"numQualified":numQualified,
		   			"carBrand":carBrand,
		   			"carSeries":carSeries,
		   			"carModel":carModel,
		   			"displacement":displacement,
		   			"power":power,
		   			"vin":vin,
		   			"numEngine":numEngine,
		   			"numChassisSix":numChassisSix,
		   			"companyBill":companyBill,
		   			"dateBill":dateBill,
		   			"numBill":numBill,
		   			"areaBill":areaBill,
		   			"noticeModel":noticeModel,
		   			"price":price,
		   			"nameCarBrand":nameCarBrand,
		   			"executeType":"1"
		   		},
				success: function(datas)
				{
			 	  if(datas.flag == "100100")
			 	  {
			 		  layer.msg(datas.message, {icon: 6});
					  return;
				  }
				  layer.msg(datas.message, {icon: 5});
				}
		   	});
		}
	    
	    
	    //提交
	    var save = function()
	    {	
	    	var validstatus = $("#commentForm").valid();
	    	if(!validstatus)
	    	{
	    		layer.msg("有验证未通过，请仔细检查！", {icon: 5});
	    		return;  
	    	}
	    	layer.confirm('是否确认执行操作？操作人：<span style="color:#BD1723;">${current_user_key.uname}</span>', {
		    	  btn: ['确定','取消'] //按钮
		    	}, function(){
		    		layer.closeAll();
		    		var busiId = $('#busiId').val();
		    		$.dpAjax({
				   		url:'${basePath}/YwShouLiController/diepuCarTransfer',
				   		data:{"busiId":busiId,"executeType":"2"},
						success: function(datas)
						{
							layer.msg("执行成功！", {icon: 6,time:3000});
		     				 setTimeout(function(){
		     					location.href='${basePath}/web/ywShouLi/registrationTransferList.jsp'; 
		     				 },3000);
						}
				   	});
	    	}, function(){
	    		layer.msg('本次操作已取消！', {icon: 6});
	    	});
	    }
    </script>
</body>
</html>
